import { t } from '@/locales/i18n';

import { FlowNodeTemplateTypeEnum, FlowNodeTypeEnum } from '../../constant';
import { FlowNodeTemplateType } from '../../node';
import { getHandleConfig } from '../utils';

export const SystemConfigNode: FlowNodeTemplateType = {
  id: FlowNodeTypeEnum.systemConfig,
  templateType: FlowNodeTemplateTypeEnum.systemInput,
  flowNodeType: FlowNodeTypeEnum.systemConfig,
  sourceHandle: getHandleConfig(false, false, false, false),
  targetHandle: getHandleConfig(false, false, false, false),
  avatar: 'systemConfig.svg',
  name: t('template.system_config'),
  intro: t('workflow.system_config_desc'),
  unique: true,
  forbidDelete: true,
  version: '481',
  inputs: [],
  outputs: [],
  isFolded: true,
};
